const publicStyle = { style: { width: "160px" } };
export const checkFieldList = [
  {
    field: "number",
    type: "input",
    selectStyle: { width: "120px" },
    select: [
      { label: "支票号", value: "checkNos" },
      { label: "支票凭证号", value: "voucherNos" },
    ],
    placeholder: "查询",
    ...publicStyle,
  },
  // {
  //   field: "supplierIds",
  //   // type: "select",
  //   slot:'supplier',
  //   // originOption:'supplierList',
  //   // options: {
  //   //   placeholder: "供应商名称",
  //   //   valueKey:'s_id',
  //   //   labelKey:'supplier_name'
  //   // },
  // },
  {
    field: "user",
    selectStyle: { width: "120px" },
    select: [
      { label: "采购制单人", value: "procurementMakerIds" },
      { label: "创建人", value: "createUsers" },
    ],
    slot: "create_user",
  },
  {
    field: "departmentIds",
    slot: "department",
  },
  {
    field: "state",
    type: "select",
    originOption: "check_detail_review_state",
    multiple: true,
    options: {
      placeholder: "状态",
    },
    style: { width: "200px" },
  },
  {
    field: "dateRange",
    type: "dateTimeRange",
    style: { width: "360px" },
    select: [
      { label: "出票日期", value: "ticketAt" },
      { label: "创建时间", value: "createdAt" },
      { label: "移交制单人日期", value: "transferProducerAt" },
      { label: "密码提供日期", value: "passwordProvisionAt" },
      { label: "实际汇出/扣款日期", value: "debitAt" },
    ],
    selectStyle: { width: "120px" },
    itemProps: {
      startPlaceholder: "创建最早时间",
      endPlaceholder: "创建最晚时间",
    },
  },
];

export const acceptanceFieldList = [
  {
    field: "dateRange",
    type: "dateTimeRange",
    style: { width: "360px" },
    select: [
      { label: "到期日期", value: "ticketAt" },
      { label: "出票日期", value: "createdAt" },
    ],
    selectStyle: { width: "120px" },
    itemProps: {
      startPlaceholder: "创建最早时间",
      endPlaceholder: "创建最晚时间",
    },
  },
  {
    field: "acceptanceBankIds",
    type: "select",
    originOption: "channelList",
    multiple: true,
    options: {
      placeholder: "承兑银行",
      valueKey: "id",
      labelKey: "channelName",
    },
    style: { width: "240px" },
  },
  {
    field: "user",
    slot: "create_user",
    selectStyle: { width: "120px" },
    select: [
      { label: "采购制单人", value: "procurementMakerIds" },
      { label: "创建人", value: "createUsers" },
    ],
  },
];
